//
//  VMCUserApi.h
//  vmcshop
//
//  Created by bigknife on 14/11/6.
//  Copyright (c) 2014年 idongler. All rights reserved.
//

#import "VMCApi.h"

@interface VMCUserApi : VMCApi
+(instancetype) sharedInstance;

/**
 *  登录
 *
 *  @param loginName 用户名
 *  @param password  密码
 *  @param callback  接口回调
 */
-(void) loginUserWithLoginName:(NSString *)loginName
                   andPassword:(NSString *)password
                      callback:(API_CALLBACK)callback;
/**
 *  退出登录
 *
 *  @param session  会话标志，token
 *  @param callback 接口回调
 */
-(void) logoutWithSession:(NSString *)session callback:(API_CALLBACK)callback;

/**
 *  注册用户
 *
 *  @param mobile   手机号码
 *  @param password 密码
 *  @param vcode    验证码
 *  @param callback 接口回调
 */
-(void) registerUserWithMobile:(NSString *)mobile
						  name:(NSString *)name
                      password:(NSString *)password
                         vcode:(NSString *)vcode
                      callback:(API_CALLBACK)callback;

/**
 *  查询我的收藏夹
 *
 *  @param queryParam 查询参数，分页参数
 *  @param callback   接口回调
 */
-(void) loadMyFavListWithQueryParam:(VMCListQueryParam *)queryParam
						   callback:(API_CALLBACK)callback;

/**
 *  添加商品到收藏夹
 *
 *  @param goodsId  商品id
 *  @param callback 接口回调
 */
-(void) addGoods:(NSString *)goodsId toMyFavWithCallback:(API_CALLBACK)callback;

/**
 *  从收藏夹删除商品
 *
 *  @param goodsId  商品id
 *  @param callback 接口回调
 */
-(void)deleteGoods:(NSString *)goodsId formMyFavWithCallback:(API_CALLBACK)callback;

/**
 *  查询我的优惠券
 *
 *  @param queryParam 查询参数
 *  @param callback   接口回调
 */
-(void) loadmyCouponsWithQueryParam:(VMCListQueryParam *)queryParam callback:(API_CALLBACK)callback;

/**
 *  查询我的分佣信息列表
 *
 *  @param fenyong	  查询参数
 *  @param callback   接口回调
 */
- (void)loadmyCommissionOrderList:(API_CALLBACK)callback;
/**
 *  查询会员的处方单
 *
 *  @param get_prescription	  查询参数
 *  @param callback			  接口回调
 */
- (void)loadmyRecipelList:(API_CALLBACK)callback;

/**
 *  查询会员的咨询记录
 *
 *  @param ask_list			  查询参数
 *  @param callback			  接口回调
 */
- (void)loadAdvusiryList:(API_CALLBACK)callback;

/**
 *  查询会员的关注医生列表
 *
 *  @param ask_list			  查询参数
 *  @param callback			  接口回调
 */



-(void)loadmyWuLiuWithOrderID:(NSString *)orderID callback:(API_CALLBACK)callback;

//判断收藏商品是否已加入收藏夹
- (void)checkIsFavWith:(NSString *)goodId callback:(API_CALLBACK)callback;
-(void) loadMyMessageCount:(API_CALLBACK)callback;

-(void)loadMyInfo:(API_CALLBACK)callback;

@end
